package com.lingxu.base.system.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_depart")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_depart对象", description="部门信息表")
public class SysDepart implements Serializable{
    
	/**主键*/
	@TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键（编辑时必填）")
	private String id;
	/**上级部门*/
    @ApiModelProperty(value = "上级部门")
	private String pid;

	/** 单位名称 */
	@ApiModelProperty(value = "单位名称")
	private String name;
	/** 单位名称 */
	@ApiModelProperty(value = "单位名称简拼")
	private String ename;

	/** 单位code编码 */
	@ApiModelProperty(value = "单位code编码")
	private String code;

	/** 单位简称 */
	@ApiModelProperty(value = "单位简称")
	private String simplename;

	/** 单位类型 */
	@ApiModelProperty(value = "单位类型")
	private String orgtype;

	/** 单位等级 */
	@ApiModelProperty(value = "单位等级")
	private String orglevel;

	/** 联系人 */
	@ApiModelProperty(value = "联系人")
	private String linkperson;

	/** 联系电话 */
	@ApiModelProperty(value = "联系电话")
	private String telephone;

	/** 邮箱 */
	@ApiModelProperty(value = "邮箱")
	private String email;

	/** 地址 */
	@ApiModelProperty(value = "地址")
	private String address;

	/** 详细描述 */
	@ApiModelProperty(value = "详细描述")
	private String detail;

	/** 备注 */
	@ApiModelProperty(value = "备注")
	private String remark;

	/** 创建人 */
	@ApiModelProperty(value = "创建人")
	private String createby;

	/** 创建时间 */
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private Date createtime;

	/** 是否删除（1是0否） */
	@ApiModelProperty(value = "是否删除（1是0否）")
	private String isdel;

	@ApiModelProperty(value = "描述")
	private String description;

	@ApiModelProperty(value = "排序")
	private String sortnum;

	private String orgid;

	private String orgcode;

	@ApiModelProperty(value = "地区编码")
	private String region;
	private String regionName;


	@TableField(exist = false)
	private String password;

	@TableField(exist = false)
	private Integer pageNo;
	@TableField(exist = false)
	private Integer pageSize;

}
